#Here we import some python modules before we do anything.
import os
import sys
#Next we tell windows to clear the screen not really needed but whatever
os.system("cls")
#Below we make a varible called choice and tell it to equal zero until otherwise specified
choice = 0
#This is the while statement. It allows the program to only end when you press q
#Without the while statement the program would quit after entering the forst choice
while choice != "q":

#Here is the print function which is what you see on your screen
#In Python 3 the print statement must have perenthisis before an after quotes
#In Python 2 the print statement only needs quotes




    print ("1 = Microsoft Paint")

    print ("2 = Calculator")

    print ("3 = Internet Explorer")

    print ("4 = Windows Self Extracting Archive Creator")

    print ("5 = Microsoft Management Console")

    print ("6 = Windows Media Player 5.1 (Windows NT/XP)")

    print ("7 = Microsoft Sync Center")

    print ("8 = Windows Remote Desktop")

    print ("9 = Notepad")

    print ("10 = Wordpad")

    print ("11 = Windows Backup Utility (Windows NT/XP)")

    print ("12 = Command-line DNS Lookup")

    print ("13 = System Performance Monitor")

    print ("14 = System Restore Utility (Does not work with XP)")

    print ("15 = Character Map")

    print ("16 = Sound Recorder (Windows NT/XP)")

    print ("17 = Sound Recorder (Windows Vista)")

    print ("18 = Utility Manager")

    print ("19 = Disk Cleanup")

    print ("20 = DirectX Diagnosis Tool")

    print ("21 = Registry Editor (Advanced)")

    print ("22 = System Configuration (Advanced)")

    print ("")
#Next we make choice also equal input and prompt the user to enter a number
#Anything other that what is listed as a choice below will not work

    choice = input ("Enter choice here: ")
#Here we use the if statement which varifies the choice variable
#If the user enters the number 1
#the os module is called and tells the operating system to call a certain file
#The system module is also called with the os module after the period
#These modules will not work unless you import them at the beggining of the program

    if choice == "1":
        os.system("mspaint.exe")

    if choice == "2":
        os.system("calc.exe")

    if choice == "3":
        os.system("start iexplore.exe")

    if choice == "4":
        os.system("iexpress.exe")

    if choice == "5":
        os.system("mmc.exe")

    if choice == "6":
        os.system("mplay32.exe")

    if choice == "7":
        os.system("mobsync.exe")

    if choice == "8":
        os.system("mstsc")

    if choice == "9":
        os.system("notepad.exe")

    if choice == "10":
        os.system("write.exe")

    if choice == "11":
        os.system("ntbackup.exe")

    if choice == "12":
        os.system("nslookup.exe")

    if choice == "13":
        os.system("perfmon.exe")

    if choice == "14":
        os.system("start rstrui.exe")

    if choice == "15":
        os.system("charmap.exe")

    if choice == "16":
        os.system("sndrec32.exe")

    if choice == "17":
        os.system("SoundRecorder.exe")

    if choice == "18":
        os.system ("Utilman.exe")

    if choice == "19":
        os.system ("cleanmgr.exe")

    if choice == "20":
        os.system ("dxdiag.exe")

    if choice == "21":
        os.system ("regedit.exe")

    if choice == "22":
        os.system ("start msconfig.exe")


#This is the end of the program but not the end of the while loop
#To end the while loop the user must press q which is assigned to the while statement above
